﻿<script src="../O.cn_My/js/prototype.js" type="text/javascript"></script>
<input type=checkbox id=myChk name="chk" value=1> Test
<script>
function Class(){
    this.name="class";
}
Class.prototype.getName=function(){
    alert(this.name);
}
var obj=new Class();
//document.getElementById('myChk').onclick=obj.getName;
document.getElementById('myChk').onclick=obj.getName.bind(obj);
//$('myChk').onclick=obj.getName.bind($('myChk'));
</script>